#include <stdio.h>

struct _rect {
    int width;
    int height;
};


int main(int argc, char *argv[])
{
    /* initialize a struct array */
    struct _rect rect_info[] = {
        {1, 2},
        {3, 4},
    };

    /* initialize a struct with explicit field name */
    struct _rect r1 = {
        .width  = 5,
        .height = 6,
    };

    struct _rect r2 = {7, 8};
            

    /* assignment of struct */
    rect_info[1] = rect_info[0];
    r2 = r1;
    
    return 0;
}

